﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DelonixRegiaHMSys.Core.Interfaces;
using DelonixRegiaHMSys.Core.Models;

namespace DelonixRegiaHMSys.Core.Services
{
    public class StaffServices
    {
        private readonly IStaffQuery _StaffQuery;
        public StaffServices(IStaffQuery StaffQuery)
        {
            _StaffQuery = StaffQuery;
        }
        public IEnumerable<Staff> GetAll()
        {
            return _StaffQuery.GetAllStaff();
        }
        public void AddStaff(string staffID, string staffImage, string staffLastName, string staffFirstName, DateTime DOB, string bankAccNum, string homeAddress, int phoneNum, string dutiesName)
        {
            _StaffQuery.AddStaff(staffID, staffImage, staffLastName, staffFirstName, DOB, bankAccNum, homeAddress, phoneNum, dutiesName);
        }

        public void DeleteStaff(string staffID)
        {
            _StaffQuery.DeleteStaff(staffID);
        }

        public void UpdateStaff(string staffID, string staffImage, string staffLastName, string staffFirstName, DateTime DOB, string bankAccNum, string homeAddress, int phoneNum, string dutiesName)
        {
            _StaffQuery.AddStaff(staffID, staffImage, staffLastName, staffFirstName, DOB, bankAccNum, homeAddress, phoneNum, dutiesName);
        }
        public void RetrieveStaff(string staffID)
        {
            _StaffQuery.RetrieveStaff(staffID);
        }
    }
}
